#ifndef USERPAGE_H
#define USERPAGE_H

#include <QWidget>
#include<QStandardItemModel>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <QSqlTableModel>
namespace Ui {
class UserPage;
}

class UserPage : public QWidget
{
    Q_OBJECT

public:
    explicit UserPage(QSqlDatabase &d,QString InId);
    ~UserPage();

private slots:
    void on_rueBut_clicked();


    void on_pushButton_7_clicked();

    void on_chImageBut_clicked();

private:
    Ui::UserPage *ui;
    QSqlDatabase db;
    QString myId;
    void initMe();
    QStandardItemModel m_model;
    void getAllUsers();
    QSqlTableModel * d_model;
    void changePassword();
    void oldPasswordInput();
};

#endif // USERPAGE_H

